<?php

namespace WebmanGrpc\Transformer;

use Workerman\Protocols\Http\Response;
use Google\Protobuf\Internal\Message;

/**
 * 响应转换器接口
 * 
 * 用于将gRPC响应转换为HTTP响应
 */
interface ResponseTransformerInterface
{
    /**
     * 转换gRPC响应为HTTP响应
     * 
     * @param Message $grpcResponse gRPC响应消息
     * @return Response HTTP响应
     */
    public function transform(Message $grpcResponse): Response;
}